CC = gcc

ROOTPATH=..
INCLUDE = -I$(ROOTPATH)/inc ./

OBJ += $(patsubst %.c, %.o, $(wildcard ./*.c))

CFLAGS = -O0 -g3 -Wall -Wint-conversion
target = out.bin

all:$(OBJ)
	$(CC) ./*.o -lm -o $(target)
%.o:%.c
	$(CC) $(CFLAGS) -c $< -o $@ $(INCLUDE)

.PHONY:clean
clean:
	-rm -rf ./*.o $(target)
